package com.hsgene.user.dto.user.manager;

import com.hsgene.user.domain.Employee;
import com.hsgene.user.domain.User;
import com.hsgene.user.dto.address.ConsignAddressDto;

import java.io.Serializable;

/**
 * 普通管理员信息
 *
 * @author wangbing
 * @version 1.0, 2018/7/17
 */
public class NormalManager implements Serializable {

    private static final long serialVersionUID = -2304411252644505480L;

    /**
     * 登录手机号
     */
    private String phone;

    /**
     * 登录密码
     */
    private String password;

    /**
     * 昵称
     */
    private String nickName;

    /**
     * 头像
     */
    private String headImage;

    /**
     * 年龄
     */
    private Short age;

    /**
     * 性别(int)：0 = 保密，1 = 男，2 = 女
     */
    private Byte gender;

    /**
     * 是否删除
     */
    private Boolean deleted;

    /**
     * 角色类型
     */
    private String roleType;

    /**
     * 所属供应商id
     */
    private Long supplierId;

    /**
     * 是否离职
     */
    private Boolean quitJob;

    /**
     * 收货地址（当userType=m时，此字段有意义）
     */
    private ConsignAddressDto consignAddress;

    public NormalManager() {
    }

    public NormalManager(User user, Employee employee) {
        this.phone = user.getPhone();
        this.nickName = user.getNickName();
        this.headImage = user.getHeadImage();
        this.age = user.getAge();
        this.gender = user.getGender();
        this.deleted = user.getDeleted();
        this.roleType = employee.getRoleType();
        this.supplierId = employee.getSupplierId();
        this.quitJob = employee.getQuitJob();
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getHeadImage() {
        return headImage;
    }

    public void setHeadImage(String headImage) {
        this.headImage = headImage;
    }

    public Short getAge() {
        return age;
    }

    public void setAge(Short age) {
        this.age = age;
    }

    public Byte getGender() {
        return gender;
    }

    public void setGender(Byte gender) {
        this.gender = gender;
    }

    public Boolean getDeleted() {
        return deleted;
    }

    public void setDeleted(Boolean deleted) {
        this.deleted = deleted;
    }

    public String getRoleType() {
        return roleType;
    }

    public void setRoleType(String roleType) {
        this.roleType = roleType;
    }

    public Long getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(Long supplierId) {
        this.supplierId = supplierId;
    }

    public Boolean getQuitJob() {
        return quitJob;
    }

    public void setQuitJob(Boolean quitJob) {
        this.quitJob = quitJob;
    }

    public ConsignAddressDto getConsignAddress() {
        return consignAddress;
    }

    public void setConsignAddress(ConsignAddressDto consignAddress) {
        this.consignAddress = consignAddress;
    }
}
